{% extends "intest/base.html" %}
{% block title %}设备管理{% endblock %}
{% load staticfiles %}
{% block css %}
{% endblock %}
{% block js %}
{% endblock %}
{% block content %}
    <div class="panel panel-default">
    <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>deiviceid</th>
                  <th>port</th>
                  <th>aport</th>
                  <th>bport</th>
                  <th>isused</th>
                  <th>tag</th>
                </tr>
              </thead>
              <tbody>
              {% for device in devices %}
                <tr>
                  <td>{{ device.deviceid }}</td>
                  <td>{{ device.port }}</td>
                  <td>{{ device.aport }}</td>
                  <td>{{ device.bport }}</td>
                  <td>{{ device.isused }}</td>
                  <td>{{ device.tag }}</td>
                  <td>
                      <a href="/intest/updateDevice?deviceid={{ device.deviceid }}">
                          <button class="btn btn-primary btn-xs">修改</button>
                      </a>
                  </td>
                </tr>
              {% endfor %}
              </tbody>
            </table>
          </div>
        </div>
</div>
{% endblock %}